#ifndef __SCNS_VL53L0X_H__
#define __SCNS_VL53L0X_H__

#include "ScnsConfig.h"

#if (defined(SCNS_VL53L0X_ENABLE)&&SCNS_VL53L0X_ENABLE==1)||defined(SCNS_VL53L0X_VIRTUAL_ENABLE)&&SCNS_VL53L0X_VIRTUAL_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspVl53l0x.h"

typedef struct
{
    uint64 lastUs;
    uint8 rangeStatus;
    uint16 millimeters;
    uint16 oriMillimeters;
    uint16 ambientCount;
    uint16 signalCount;
}ScnsVl53l0xResult;

extern ScnsVl53l0xResult scnsVl53l0xResult[SCNS_VL53L0X_MAX];

#endif
#if defined(SCNS_VL53L0X_ENABLE)&&SCNS_VL53L0X_ENABLE==1
extern ScnsStatus scnsVl53l0xInit(ScnsVl53l0xEnum vl5N);
extern void scnsVl53l0xInterrupt(ScnsVl53l0xEnum vl5N);
extern ScnsStatus scnsVl53l0xReInit(ScnsVl53l0xEnum vl5N);
extern void scnsVl53l0xSetRunning(ScnsVl53l0xEnum vl5N,uint8 running);
extern uint8 scnsVl53l0xISRunning(ScnsVl53l0xEnum vl5N);

#endif
#endif
